﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TagCloudSoma
{
    public class Pattern : IComparable
    {
        private int _order;
        private string _name;
        private string _pattern;

        public Pattern(int i, string n, string p) 
        {
            _order = i;
            _name = n;
            _pattern = p;
        }

        #region Properties
        public int Order
        {
            get{ return _order; }
            set { _order = value; }
        }

        public string Name
        {
            get{ return _name; }
            set{ _name = value; }
        }

        public string Pat
        {
            get{ return _pattern; }
            set{ _pattern = value; }
        }
        #endregion

        #region CompareTo Method
        public int CompareTo(object obj)
        {
            Pattern Compare = (Pattern)obj;
            return this.Order.CompareTo(Compare.Order);
        }
        #endregion
    }
}
